import java.util.ArrayList;
import java.util.Scanner;

public class ParrotMain {
	public static void main(String[] args) {
		Parrot a = new Parrot (9, "Billy", 6, "green");
		Parrot b = new Parrot (1, "Floyd", 2, "red");
		Parrot c = new Parrot (4, "Pepe", 5, "yellow");
		Parrot d = new Parrot (15, "Carl", 9, "orange");
		Parrot e = new Parrot (33, "Jake", 17, "Purple");
		Parrot f = new Parrot (3, "Jon", 3, "Blue");
		Parrot g = new Parrot (6, "Poncho", 5, "Crimson");
		Parrot h = new Parrot (13, "Pilet", 7, "Magenta");
		Parrot i = new Parrot (9, "Skyo", 6, "Green");

		ArrayList<Parrot> parrots = new ArrayList<Parrot>();
		parrots.add(d);
		parrots.add(a);
		parrots.add(b);
		parrots.add(c);
		parrots.add(e);
		parrots.add(f);
		parrots.add(g);
		parrots.add(h);
		parrots.add(i);
		
		Scanner scan = new Scanner(System.in);
		System.out.println("Enter a parrot name to find");
		String input = scan.next();
		
		for(int x = 0; x<parrots.size(); x++){
			Parrot p = parrots.get(x);
			if (p.getName().equals(input)){
				System.out.println("Parrot has been found.");
		System.out.println("Age:                       "+p.getAge());
		System.out.println("Name:                      "+p.getName());
		System.out.println("Feather Color:             "+p.getFeatherColor());
		System.out.println("Feather Length(inches):    "+p.getFeatherLength());
		p.chirp(); 
			}
			else if (p.getName().equals(input)){
		
			}
		boolean n = parrots.remove(input);
		//if (n == false){
		//	System.out.println("Name found.");}
		//else {
		//	System.out.println("Name not found.");
		//}
			
		
		
		
		
		
	}
	}
}


